#ifndef LOGINWINDOW_H
#define LOGINWINDOW_H

#include <QDialog>
#include "networkmanager.h"

QT_BEGIN_NAMESPACE
namespace Ui
{
    class AuthWindow;
}

QT_END_NAMESPACE

class AuthWindow : public QDialog
{
    Q_OBJECT

public:
    AuthWindow(QWidget *parent = nullptr);
    ~AuthWindow();

private slots:
    void on_loginButton_clicked();
    void on_registerButton_clicked();

    void on_exitButton_1_clicked();
    void on_exitButton_2_clicked();

    void handleLoginResponse(const QJsonObject &response);
    void handleRegisterResponse(const QJsonObject &response);

private:
    Ui::AuthWindow *authwindowUI;
    NetworkManager* networkManager;
};

#endif // LOGINWINDOW_H


